import crafttweaker.item.IItemStack;
import crafttweaker.item.IIngredient;

global muaRecipes as IIngredient[][]=[];
global muaResults as IItemStack[]=[];
global muaRecipemusics as string[][]=[];

val nb=<minecraft:noteblock>;
mods.jei.JEI.addDescription(nb,"Music Altar requires: a repetitive command block under the terra plate, with the rest 5 faces surrounded by Avartia's Crystal Matrix.\nIf the command block is at (x,y,z),then Botania's 4 mana_pylons should be placed at (x+2,y,z), (x-2,y,z), (x,y,z+2), (x,y,z-2).");
mods.jei.JEI.addDescription(nb,"To use the Music Altar, first offer a redstone pulse to it, then play the NoteBlocks with correct notes and octaves in order, so that numerous mana could be offered to the plate. However, if the music went wrong, tiny explosion will take place above the plate, terminating the craft.");
mods.jei.JEI.addDescription(nb,"Different from the voice you hear, the octave detected by the altar is determined as the following:");
mods.jei.JEI.addDescription(nb,"1~3: minecraft:planks minecraft:log minecraft:log2\n2~4 minecraft:wool\n4~6minecraft:clay5~7minecraaft:gold_block minecraft:packed_ice\n114514~114516:minecraft:sand minecraft:glass minecraft:stone minecraft:cobblestone\n3~5: All the rest blocks");

function convert_string_to29

function addMuaRecipe(out as IItemStack, ins as IIngredient[], music as string, 
    cornerIn as IIngredient = <minecraft:crafting_table>, cornerRet as IIngredient = <minecraft:crafting_table>, 
    color1 as int=0x00FF88, color2 as int=0x0088FF) as void{
    muaRecipes+=ins;
    muaResults+=out;
    muaRecipemusics+=music;
    var mx as IIngredient=<avaritia:block_resource:2>;
    var muac as IIngredient=<minecraft:repeating_command_block>;
    mods.botaniatweaks.Agglomeration.addRecipe(out,ins,2147483646,color1,color2,muac,mx,cornerIn,muac,mx,cornerRet);
    mods.jei.JEI.addDescription(out,"This item should be crafted on the Music Altar. For further information, Check the JEI description for Note Boxes. Here is the music score:\n"+music);
}

addMuaRecipe(<botania:terrapick>.withTag({mana: 2147483646}),
    [<botania:manaresource:3>*2,<botania:manaresource:4>*3],
    "F4+L4X4F4+L4X4L4F4+M4R4M4F4+R4");